package com.yulebaby.callsenter.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;

import com.yulebaby.callsenter.R;
import com.yulebaby.callsenter.event.EventFactory;
import com.yulebaby.callsenter.ui.base.BaseActivity;

import org.greenrobot.eventbus.EventBus;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * @author YK
 * @date 2016-12-24.
 */
public class SaveLoseActivity extends BaseActivity {


    @BindView(R.id.tb_title)
    Toolbar tbTitle;
    @BindView(R.id.iv_result)
    ImageView ivResult;
    @BindView(R.id.tv_result)
    TextView tvResult;
    @BindView(R.id.btn_lose_backmycustomer)
    ImageButton btnBackmycustomer;

    @Override
    protected int initLayoutId() {
        return R.layout.activity_save_lose_result;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

    }

    //点击事件
    @OnClick({R.id.btn_lose_backmycustomer})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.btn_lose_backmycustomer:
                EventBus.getDefault().post(EventFactory.CreateQuitEvent());
                startActivity(new Intent(SaveLoseActivity.this, MainActivity.class));
                finish();
                break;
        }
    }

}
